export default {
	success(msg) {
		uni.showToast({
			title: msg,
			duration: 2000
		});
	},
	error(msg) {
		uni.showToast({
			title: msg,
			icon: 'none',
			duration: 2000
		});
	},
	message(msg) {
		uni.showToast({
			title: msg,
			icon: 'none',
			duration: 2000
		});
	},
	modal(data, success) {
		uni.showModal({
			title: data.title,
			content: data.content,
			success: function(res) {
				success(res)
			}
		});
	}
}
